<%-- 
    Document   : editCareer
    Created on : Jun 28, 2012, 10:12:13 AM
    Author     : VANANH
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/>
        <link rel="stylesheet" type="text/css" href="../css/kapiform.css"/>
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/jq.date.js"></script>  
        <link rel="stylesheet" type="text/css" href="../css/ui.datepicker.css"/>
    </head>
    <script type="text/javascript">
        var open_cur = 0;
        $j = jQuery.noConflict();
        $j(document).ready(function(){

           
            validateform("form-input-customer");
        });

    </script>
    <script type="text/javascript">
        var open_cur = 0;
        $j = jQuery.noConflict();
        $j(document).ready(function(){             
            $j('input#from').datepicker({ dateFormat: 'dd/mm/yy', showOn: 'button', buttonImage: '../images/calenda_icon.gif', buttonImageOnly: true }); 
            $j('input#to').datepicker({ dateFormat: 'dd/mm/yy', showOn: 'button', buttonImage: '../images/calenda_icon.gif', buttonImageOnly: true }); 
              
        });
    </script>
    <style type="text/css">
        #ui-datepicker-div
        {
            z-index: 9999999;
        }
        .form_item_content{
            float: left;
            margin-left: 10px;
            margin-top: 9px !important;
            width: 100%;
        }
        .popup-content .main_content .form_item_content .fields_input .select_cus tr td{

        }
        .select_cus td label{
            float: left;
            width: 74px !important;
            font-size: 13px;
            text-align: left !important;

        }
        .popup-content .main_content .form_item_content .item_content .fields_input .select_cus tr td input[type="radio"]{
            float:left;
            margin-right: 2px;
            margin-top:5px;
        }
        .popup-content .main_content .form_item_content .item_content .fields_input .select_cus tr td label{
            float: left;
            padding: 4px;
            text-align: right;
            width: 115px !important;
        }

    </style>
    <f:view>
        <h:form id="form-input-customer" >
            <body style=" float:left; width:auto; height:auto; margin:0px;">
                <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>

                <div class="popup" style="height:255px; width:600px">
                    <div class="popup-header">
                        <div class="title"><h:outputText value="TEMPLATE SMS"/></div>
                    </div>
                    <div class="popup-content">
                        <div class="main_content">
                            <div class="form_item_content">
                                <h:inputHidden value="#{m000Controller.pm000}"/>
                                <div class="item_content" style="display:block">
                                    <div class="fields_input">
                                        <label style="width: 69px;"><h:outputText value="Template"/><span>*</span>:</label>
                                        <h:inputText value="#{m000Controller.mv001}" styleClass="required" id="cusname" style="width:78%;" />

                                    </div>
                                   
                                    <div class="fields_input">
                                         <label style="width: 69px;"><h:outputText value="Nội dung"/>:</label>
                                         <h:inputTextarea value="#{m000Controller.mv002}" style="width:78%;height:65%;" />

                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>

                    <div class="popup-footer">

                        <div class="buttonsave" style="margin-right: 37px;" onclick="parent.jQuery.fancybox.close(); "  ><span><h:outputText value="#{locale.close}"/></span></div>
                        <h:commandButton   action="#{m000Controller.stdm_tools_inserttabm000}" value="#{locale.save}" styleClass="buttonsave">

                        </h:commandButton>

                        <h:inputHidden value="#{m000Controller.pm000}" id="pm000"/>
                    </div>

                </div>
            </body>
        </h:form>
    </f:view>
</html>
<script type="text/javascript">
    $j(document).ready(function(){
        yhight = ($j('.popup').height()-90)+"px" ;
        $j('.main_content').css('height',yhight );
        $j('.popup-content').css('height',yhight );
    });
</script>